home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
marionettemadness.swf
/
scripts
/
frame_1
/
DoAction.as
< prev
Wrap
Text File
|
2007-10-01
|
871b
|
33 lines
function playSound(ln, l)
{
if(l)
{
this[ln + "_sound"].snd.start(0,l);
}
else
{
this[ln + "_sound"].snd.start();
}
return this[ln + "_sound"].snd;
}
function stopSound(ln)
{
this[ln + "_sound"].snd.stop();
}
function stopSounds()
{
for(var _loc2_ in soundList)
{
this[soundList[_loc2_] + "_sound"].snd.stop();
}
}
this.masterVolume = new Sound(this);
this.createEmptyMovieClip("soundHolder_mc",this.getNextHighestDepth());
soundList = ["gameStart","inRound","c1","c2","c3","c4","c5","soundtrack","m1","m2","m3","m4","end1","end2","end3","end4","loser","winner"];
for(var i in soundList)
{
tmp = this[soundList[i] + "_sound"] = soundHolder_mc.createEmptyMovieClip(soundList[i],soundHolder_mc.getNextHighestDepth());
tmp.snd = new Sound(tmp);
tmp.snd.attachSound(soundList[i]);
}